package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.SelfMachineDetailBean

/**
 * Created by chenxz on 2018/4/22.
 */
class SelfMachineAdapter(private val context: Context?, datas: MutableList<SelfMachineDetailBean.DataBean>) :
    BaseQuickAdapter<SelfMachineDetailBean.DataBean, BaseViewHolder>(R.layout.item_self_marchine, datas) {

    override fun convert(helper: BaseViewHolder?, item: SelfMachineDetailBean.DataBean?) {
        item ?: return
        helper ?: return
        helper.setText(R.id.tv_title, "申请自备机入网")
            .setText(R.id.tv_member_name, item.manufacturer_name)
            .setText(R.id.tv_member_id, item.machine_model)
            .setText(R.id.tv_content, item.data_content)
            .setText(R.id.tv_time,item.create_time)
    }
}
